package cn.wolfcode.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

@Getter
@Setter
public class BalanceDetail {

    public static final int BALANCE_DETAIL_TYPE_OUT     = 0;    // 支出
    public static final int BALANCE_DETAIL_TYPE_IN      = 1;    // 收入
    public static final int BALANCE_DETAIL_TYPE_REFUND  = 2;    // 退款

    /** 模型对象的 ID */
    @TableId(type = IdType.AUTO)
    private Long        id;

    private Long        walletId;   // 钱包ID
    private Integer     type;       // 明细的类型
    private BigDecimal  money;      // 涉及金钱
    private String      info;       // 备注信息
    private Long        refundId;   // 退款ID
}
